package com.linkcard.list.manager;

import java.util.List;

import com.linkcard.commen.tools.Page;
import com.linkcard.list.model.Links;
import com.linkcard.list.persistence.LinksDao;

public class LinksManagerImpl implements LinksManager {

	private LinksDao linksDao=null;
	//添加友情链接
	public boolean addLinks(Links links) {
		return linksDao.addLinks(links);
	}
	public LinksDao getLinksDao() {
		return linksDao;
	}
	public void setLinksDao(LinksDao linksDao) {
		this.linksDao = linksDao;
	}
	//获得友情链接
	public List linksList(Page pageObj) {
		return this.linksDao.linksList(pageObj);
	}
	//获得友情链接
	public Links singleLinks(Integer id) {
		return this.linksDao.singleLinks(id);
	}
	//修改友情链接
	public boolean modifyLinks(Links links) {
		return this.linksDao.modifyLinks(links);
	}
	//删除链接
	public boolean deleteLinks(Integer id) {
		return this.linksDao.deleteLinks(id);
	}
	//获得推荐链接
	public List linksListForRecommend() {
		return this.linksDao.linksListForRecommend();
	}

}
